<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="${ctx}/css/layout.css" rel="stylesheet" type="text/css" />
<script src="${ctx}/js/common/person.js" type="text/javascript"></script>
<title>诊所人员管理</title>
<style type="text/css">
#customers
  {
  font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
  border-collapse:collapse;
  }

#customers td, #customers th 
  {
  font-size:1em;
  border:1px solid #98bf21;
  padding:3px 7px 2px 7px;
  }

#customers th 
  {
  font-size:1.1em;
  text-align:left;
  padding-top:5px;
  padding-bottom:4px;
  text-align:center;
  background-color:#A7C942;
  color:#ffffff;
  }

#customers tr.alt td 
  {
  color:#000000;
  background-color:#EAF2D3;
  }
</style>
</head>
<body>
<form action="person.action" method="get" id="personForm">
    <input type="hidden" name="page.pageNo" id="pageNo" value="${page.pageNo}"/>
	<input type="hidden" name="page.orderBy" id="orderBy" value="${page.orderBy}"/>
	<input type="hidden" name="page.order" id="order" value="${page.order}"/>
	<input type="hidden" name="id" id="id" value="${id}"/>
<table width="100%" class="noborder">
	<tr>
	    <td align="left" ><div style="font-family:Arial;font-size:15px;font-weight:bold;font-style:normal">当前位置：诊所管理--诊所人员管理</div> </td>
	</tr>
</table>

<table style="width:100%">
<tr>
<td style="width:100px"><input type="radio" name="type" value="1"/><label>班主任</label></td>
<td style="width:100px"><input type="radio" name="type" value="2"/><label>教职工</label></td>
<td style="width:100px"><input type="radio" name="type" value="0"/><label>学生</label></td>
<td style="width:180px"><label>学号/职工号:</label><input type="text" name="idNumber" value="${idNumber}" size="10"/></td>
<td style="width:50%"><input type="submit" name="" value="查询"/></td>
</tr>
</table>
<br><br><br>
 <div id="">
		<table width="700" border="1" id="customers">
			<tr>
				<th>序号</th>
				<th>姓名</th>
				<th>工号</th>
				<th>用户类型</th>
				<th>性别</th>
				<th>出生日期</th>
				<th>名族</th>
				<th>班级</th>
				<th>学校编号</th>
			</tr>
                <s:iterator value="page.result" status="index">
					<tr class="alt" >
						<td>${index.index+1}</td>
						<td>${name}</td>
						<td>${idNumber}</td>
						<s:if test="type==0">
						<td>学生</td>
						</s:if>
						<s:elseif test="type==1">
						<td>班主任</td>
						</s:elseif>
						<s:elseif test="type==2">
						<td>教职工</td>
						</s:elseif>
						<s:if test="gender==0">
						<td>男</td>
						</s:if>
						<s:else>
						<td>女</td>
						</s:else>
						<td>${birthday}</td>
						<td>${nationality}</td>
						<td>${clazz.className}</td>
						<td>${schoolCode}</td>
					</tr>
             </s:iterator>
		</table>
			<p></p>
			<table width="700" class="noborder">
		  <tr>
			    <td align="right" >第${page.pageNo}页, 共${page.totalPages}页
					<a href="javascript:jumpPage(1)">首页</a>
					<s:if test="page.hasPre"><a href="javascript:jumpPage(${page.prePage})">上一页</a></s:if>
					<s:if test="page.hasNext"><a href="javascript:jumpPage(${page.nextPage})">下一页</a></s:if>
					<a href="javascript:jumpPage(${page.totalPages})">末页</a>
				</td>
		  </tr>
	</table> 
	</div>
	<div><input type="button" name="synchonory" value="同步人员信息" onclick="synchoPerson()"/></div> 
</form>
</body>
</html>